package com.testfileupload.uploadimg.design.prototype;

import java.util.List;
import java.util.Random;

/**
 * 浅拷贝，数组和对象引用不拷贝，其他原始类型会拷贝
 */
public class Client2 {


    public static void main(String[] args) throws CloneNotSupportedException {
        ShelldowMail shelldowMail = new ShelldowMail(new AVTemplate());
        shelldowMail.setList("23");
        ShelldowMail clone = (ShelldowMail) shelldowMail.clone();
        clone.setList("32");
        List<String> list = shelldowMail.getList();
        System.out.println(list);
    }


}
